/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package contractmessageservice;

import javax.ejb.Stateless;
import javax.jms.JMSException;
import javax.jws.WebService;
import javax.naming.NamingException;
import javax.xml.bind.JAXBException;

/**
 *
 * @author ool
 */
@WebService(serviceName = "esiteam1no1", portName = "ContractMessageServicePort", endpointInterface = "contractmessageservice.ContractMessageServicePortType", targetNamespace = "http://ContractMessageService/", wsdlLocation = "META-INF/wsdl/ContractMessageService/ContractMessageService.wsdl")
@Stateless
public class ContractMessageService {

    public void contractMessageService(contractmessageservice.ContractMessage input) throws NamingException, JMSException, JAXBException {
        String text = JmsMessageService.contractMessageToString(input);
        JmsMessageService.sendJmsMessage(text);
    }
    
}
